<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<jsp:include page="../common/header.jsp"></jsp:include>
  <header class="navbar navbar-static-top" id="top" role="banner">
  <div class="container">
    <div class="navbar-header" style="text-align: center;">
      <a href="/" class="navbar-brand">用户管理系统---用户列表</a>
    </div>
  </div>
</header>
<body>
	<div id="main" class="container">
		<div class="row">
			<div class="col-lg-12 col-sm-12 col-md-12">
				<div class="pull-right">
					<a href="user/form" class="btn btn-primary">新增用户</a>
				</div>
				<table class="table table-hover table-bordered">
					<thead>
						<tr>
							<th>ID</th>
							<th>姓名</th>
							<th>年龄</th>
							<th>性别</th>
							<th>备注</th>
							<th>操作</th>
						</tr>
					</thead>
					<tbody>
						<c:forEach items="${users }" var="user">

							<tr>
								<td>${user.id }</td>
								<td>${user.name }</td>
								<td>${user.age }</td>
								<td>
								<c:if test="${user.sex==1}">男</c:if>
								<c:if test="${user.sex==2}">女</c:if>
								</td>
								<td>${user.remark }</td>
								<td><a href="user/edit/${user.id }"
									class="btn btn-primary btn-ml">修改</a>
								    <a href="user/del/${user.id }"
									class="btn btn-danger btn-ml">删除</a></td>
							</tr>

						</c:forEach>
					</tbody>
				</table>
			</div>
		</div>
	</div>
</body>
</html>